package com.lgx.mobile.dao;

import java.util.List;

import com.lgx.common.exception.DataException;
import com.lgx.mobile.entity.Friend;

/**
 * 
 * @author xuyichen
 *
 */
public interface IFriendDao  {
	public Friend createFriend(Friend friend) throws DataException;
	public Friend updateFriend(Friend friend) throws DataException;
	public void deleteFriend(Friend friend) throws DataException;
	public void deleteFriendById(long id) throws DataException;
	public Friend findFriendById(long id);
	public Friend checkFriendExists(long onwerUserId,long friendUserId);
	public List<Friend> findFriendListByOnwerUserId(long onwerUserId);
	public List<Friend> findFriendList();
}